<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>附件</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
    @if(count($accessoryData) > 0)
        <p style="width:100%;text-align:center;">
            @foreach($accessoryData as $accessory)
                @if(substr($accessory, strpos($accessory, '.')+1) == 'png'
                    || substr($accessory, strpos($accessory, '.')+1) == 'jpg'
                    || substr($accessory, strpos($accessory, '.')+1) == 'jpeg')
                    <img src="{{"http://static.tcmcme.cn/".$accessory}}" alt="附件" style="width:30%;margin: 0 auto;" class="img-responsive">
                @else
                    <a href="{{"http://static.tcmcme.cn/".$accessory}}" style="width:30%;margin: 0 auto;">该文件无法识别，请下载查看</a>
                @endif
            @endforeach
        </p>
    @else
        <p>资源丢失</p>
    @endif
</body>
</html>